package cn.edu.xmu.orderpayment.payment.model.bo;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

public class OrderPayment {

//    //枚举单据类型
//    public enum DocumentType{
//        ORDER((byte)0,"订单"),
//        MARGIN((byte)1,"保证金"),
//        DEPOSIT((byte)2,"订金"),
//        BALANCE((byte)3,"尾款");
//
//        private static final Map<Byte, DocumentType> DocumentType_MAP;
//
//        static { //由类加载机制，静态块初始加载对应的枚举属性到map中，而不用每次取属性时，遍历一次所有枚举值
//            DocumentType_MAP = new HashMap();
//            for (DocumentType enum1 : values()) {
//                DocumentType_MAP.put(enum1.documentType, enum1);
//            }
//        }
//
//        private Byte documentType;
//        private String description;
//
//        DocumentType(byte documentType, String description) {
//            this.documentType = documentType;
//            this.description = description;
//        }
//
//        public Byte getDocumentType(){
//            return documentType;
//        }
//
//        public String getDescription() {return description;}
//    }

    private  String orderSn;//单据id
    private Long amount;//支付金额
    private Byte documentType;//单据类型: 0 订单， 1 保证金, 2 订单订金， 3 订单尾款
    private LocalDateTime beginTime;//开始支付时间
    private LocalDateTime endTime;//支付截止时间
    private String descr;//备注

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Byte getDocumentType() {
        return documentType;
    }

    public void setDocumentType(Byte documentType) {
        this.documentType = documentType;
    }

    public LocalDateTime getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(LocalDateTime beginTime) {
        this.beginTime = beginTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
}
